package com.mxchip.livestarmobile.mobile.ui.login

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import com.mxchip.livestarmobile.R
import kotlinx.android.synthetic.main.show_web_view.*

class WebViewFragment : Fragment() {
    private val args: WebViewFragmentArgs by navArgs()
    override fun onCreateView(inflater: LayoutInflater,
                              container: ViewGroup?, savedInstanceState: Bundle?): View? {

        return inflater.inflate(R.layout.show_web_view, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        val webViewStr = args.showWebView
        web_view.loadUrl("file:///android_asset/$webViewStr")
    }
}